SOAPResult Class

Returns the value found for the specified XML tag.

Events

None

Properties

Body

Document

Envelope

Error

ErrorCode

ErrorString


Methods

Result


More information available in parent classes: Object


Example

The following example uses SOAPResult to get the temperature in the passed Zip Code.

Dim sm as SOAPMethod
Dim sr as SoapResult
  
// create soap method and define parameters
sm = New SOAPMethod
sm.parameter("zipcode") = zipcodeFld.text
  
  // setup method properties
sm.MethodNamespace = "urn:xmethods-Temperature"
sm.url = "http://services.xmethods.net:80/soap/servlet/rpcrouter"
  
// call the method
sr = sm.invoke("getTemp")
  
  // display the result
MsgBox sr.result("return")

See Also

SOAPMethod class; SOAPException error.